﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcDanhSachHocVien.ascx.cs" Inherits="STT.Profile.UserControlsGV.UcDanhSachHocVien" %>
<div id="biography" class="page home">
    <div style="width:90%">
         <div class="row" >
            <div class="col-md-7">
            <h1 class="title"><span id="ctl02_DtlIndex_Label1_0">Danh sách học viên</span></h1>
            </div>                                 
        </div>
        <div class="row" style="margin-top:10px;margin-bottom:20px">
             <div class="col-md-7">
                 Khóa học:
                 <asp:DropDownList ID="ddlkhoahoc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlkhoahoc_SelectedIndexChanged" CssClass="dropdl" ></asp:DropDownList>             
                 &nbsp;&nbsp;&nbsp;
                 Lớp học:
                 <asp:DropDownList ID="ddllophoc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddllophoc_SelectedIndexChanged" CssClass="dropdl" ></asp:DropDownList>
                 &nbsp;&nbsp;&nbsp;
             </div>
        </div>
    <asp:Panel ID="pnbangdiem" runat="server" Visible="false">
        <div class="row" >
            <div class="col-md-7">
             <h4><asp:Label ID="lblbangdiem" runat="server" Text="" Visible="false"></asp:Label></h4>
            </div>                                 
        </div>
        <div class="modal-body">
         <asp:GridView ID="gvDiemHV" runat="server" CssClass="table table-bordered table-hover"
                AutoGenerateColumns="False" DataKeyNames="Mahv" AllowPaging="True" OnRowDataBound="gvDiemHV_RowDataBound"
                 OnPageIndexChanging="gvDiemHV_PageIndexChanging" PageSize="100" >
                <Columns>
                    <asp:TemplateField HeaderText="Số thứ tự" 
                        SortExpression="SoThuTu">
                        <ItemTemplate>
                           <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="MaHV" HeaderText="Mã Học Viên"
                        ReadOnly="True" SortExpression="MaHocVien"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                     <asp:TemplateField HeaderText="Tên Học Viên"
                        SortExpression="TenHV">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" 
                                Text='<%# Eval("TenHv").ToString() +" "+ Eval("Ten").ToString() %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span2" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Số điện thoại" 
                        SortExpression="sdt">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("Sdt") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                       <asp:TemplateField HeaderText="Chức vụ trong lớp" 
                        SortExpression="ChucVu">
                        <ItemTemplate>
                            <asp:DropDownList ID="ddlchucvutronglop"  runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlchucvutronglop_SelectedIndexChanged">
                                 <asp:ListItem Value="0">Chọn</asp:ListItem>
                                <asp:ListItem Value="1">Lớp Trưởng</asp:ListItem>
                                <asp:ListItem Value="2">Lớp Phó</asp:ListItem>
                                <asp:ListItem Value="3">Bí Thư</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Label ID="lblchucvutronglop" runat="server" Text='<%# Eval("ChucVuTrongLop") %>' Visible="false"></asp:Label>
                            <asp:ImageButton ID="imgaccept" ImageUrl="~/img/Home2/accept.jpg" runat="server" Width="12px" ToolTip="Chấp nhận chức vụ học viên" Height="12px" Visible="false" OnClick="imgaccept_Click" />
                            <asp:ImageButton ID="imgdelete" ImageUrl="../../img/delete.jpg" runat="server" Visible="false" ToolTip="Xóa chức vụ học viên" OnClick="imgdelete_Click" />
                        </ItemTemplate>
                        <ItemStyle CssClass="span1" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div>
               <asp:HyperLink ID="btnexport" CssClass="btn btn-primary" Target="_blank" runat="server">  Export
                </asp:HyperLink>

        </div>
        <br />
    </asp:Panel>
        </div>
 </div>